<?php 
//require_once('classTin.php');
//$t = new tin;
$amthuc = $t->TinTucAmThuc($lang);
$row_amthuc = mysql_fetch_assoc($amthuc); 

$vanhoa = $t->TinTucVanHoa($lang);
$tinmoi = $t->TinTucMoi($lang);

?>
<style>
#TinTuc{
	height: 230px;
	width: 700px;
	overflow: hidden;
}
.nho {
	font-size: 12px;
}

#TinTuc #chinh {
	height: 230px;
	width: 300px;
	float: left;
}
#TinTuc #chinh img {
	height: 220px;
	width: 290px;
	padding: 4px;
	border: 1px dotted #80FF80;
}
#TinTuc #sub {
	float: left;
	height: 230px;
	width: 400px;
}
#TinTuc #sub #sub_01 {
	height: 150px;
	width: 395px;
	margin-bottom: 5px;
	margin-left: 5px;
	border-bottom-width: 1px;
	border-bottom-style: dashed;
	border-bottom-color: #80FF80;
}
#TinTuc #sub #sub_02 {
	height: 74px;
	width: 395px;
	margin-left: 5px;
}
#sub_02_01 {
	float: left;
	height: 100%;
	width: 197px;
	text-align: left;
	white-space:nowrap;
}
#sub_02_02 {
	float: right;
	height: 100%;
	width: 198px;
	text-align: left;
	white-space:nowrap;
}
#amthuc {
	background-color: #00FF33;
	float: left;
	height: 100%;
	width: 197px;
}
.TieuDeTT {
	text-align: center;
	margin-top: 0px;
	font-weight: bold;
	margin-bottom: 0px;
}
.TieuDeTT a {
	color: #000000;
	text-decoration: none;
	text-align:center
}
.TieuDeTT a:hover {
	color: #33FF99;
	text-decoration: underline;
}
#TinTuc #sub #sub_02 #sub_02_01 li a {
	text-decoration: none;
	color: #000000;
	font-size: 13px;
}
#TinTuc #sub #sub_02 #sub_02_01 li a:hover {
	text-decoration: underline;
	color: #33FF99;
	font-weight: bold;
}
#TinTuc #sub #sub_02 #sub_02_02 li a {
	text-decoration: none;
	color: #000000;
	font-size: 13px;
}
#TinTuc #sub #sub_02 #sub_02_02 li a:hover {
	text-decoration: underline;
	color: #33FF99;
	font-weight: bold;
}
</style>
<div id="TinTuc">
<div id="chinh"><a href="index.php?p=details&idTin=<?=$row_amthuc['idTin']?>"><img src="<?=$row_amthuc['urlHinh']?>" /></a></div><!--END DIV CHINH-->
<div id="sub">
	<div id="sub_01">
   	  <p class="TieuDeTT"><a href="index.php?p=details&idTin=<?=$row_amthuc['idTin']?>"><?=$row_amthuc['TieuDe']?></a></p>
        <div class="nho">
          <?=$row_amthuc['TomTat']?>
        </div>
    </div><!--END DIV SUB 01-->
    
    <div id="sub_02">
    	<div id="sub_02_01">
        <ul>
        	<?php while($row_vanhoa = mysql_fetch_assoc($vanhoa)) { ?>
        	<li><a href="index.php?p=details&idTin=<?=$row_vanhoa['idTin']?>"><?=$row_vanhoa['TieuDe']?></a></li>
            <?php } ?>
        </ul>
        </div><!--END DIV SUB 02 01-->
        
		<div id="sub_02_02">
        <ul>
        	<?php while($row_tinmoi = mysql_fetch_assoc($tinmoi)) { ?>
        	<li><a href="index.php?p=details&idTin=<?=$row_tinmoi['idTin']?>"><?=$row_tinmoi['TieuDe']?></a></li>
            <?php } ?>
        </ul>	
        </div><!--END DIV SUB 02 02-->
    	
    </div><!--END DIV SUB 02-->
</div><!--END DIV SUB-->
</div><!--END DIV TIN TUC-->